<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<div class="header" th:fragment="header">
    total header
</div>
<div class="header" th:fragment="footer">
    total footer
</div>
</html>